package com.hmdp.utils;

/**
 * Redis常量
 */
public class RedisConstants {
    public static final String LOGIN_CODE_KEY = "login:code:";
    //手机验证码的有效期
    public static final Long LOGIN_CODE_TTL = 2L;

    public static final String LOGIN_TOKEN_KEY = "login:token:";
    //token的存活时间
    public static final Long LOGIN_TOKEN_TTL = 30L;

    public static final String CACHE_SHOP_KEY = "cache:shop:";
    //shop店铺的存活时间
    public static final Long CACHE_SHOP_TTL = 30L;
    //shop店铺 null 的存活时间
    public static final Long CACHE_NULL_TTL = 2L;


    public static final String LOCK_SHOP_KEY = "lock:shop:";
    public static final Long LOCK_SHOP_TTL = 30L;

    public static final String LOCK_ORDER_KEY = "lock:order:";

    public static final String CACHE_TYPES_KEY = "cache:shop-type:";

    public static final String SECKILL_STOCK_KEY = "seckill:stock:";

    public static final String BLOG_LIKED_KEY = "blog:liked:";


    public static final String FOLLOWS_KEY = "follows:";

    public static final String FEED_KEY = "feed:";

    public static final String SHOP_GEO_KEY = "shop:geo:";

    public static final String USER_SIGN_KEY = "sign:";
}
